package com.wnnight.wys.mapper.config;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName: propertyAreaMapper
 * @Description: //物业区域责任mapper
 * @author: LZJ
 * @date: 2022/8/30-20:26
 * @version: v1.0
 */
public interface propertyAreaMapper{
    @Insert("insert into wys_property_area (staff_id,place_id)values(#{staffId},#{placeId})")
     void add(@Param("staffId") int staffId, @Param("placeId") int placeId);

    @Delete("delete from wys_property_area where staff_id=#{staffId}")
    void delete(@Param("staffId") int staffId);
}
